import axios from '../axios'

export const getWaterPfxs = (params) => {
  return axios({
    url: '/evaluate/waterpfxs',
    method: 'post',
    params
  })
}

export const findByCasNo = (params) => {
  return axios({
    url: '/evaluate/findbycasno',
    method: 'post',
    params
  })
}

export const addEvaluate = (data) => {
  return axios({
    url: '/evaluate/',
    method: 'post',
    data
  })
}

export const getEvaluate = (params) => {
  return axios({
    url: '/evaluate/evaluate',
    method: 'post',
    params
  })
}
export const upload_pdf_file = (params) => {
  const config = {
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  }
  // return axios.post(`后台请求的url`, params, config).then(res => res.data)
  return axios({
    url: '/evaluate/upload',
    method: 'post',
    params,
    config
  })
}
